From: Carlos Garnacho Date: Fri, 10 Aug 2018 19:37:48 +0000 (+0200) Subject: layout: Mark chrome container as NO_LAYOUT X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~3^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=73d8c82640f6125cfbf80b791769a6e3903d6c0c;p=gnome-shell.git layout: Mark chrome container as NO_LAYOUT Showing and hiding children does not affect the allocation of the uiGroup nor its other children. We can avoid full relayout/redraw in those situations. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/197 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index 210fb667a..7a3cb227d 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -204,6 +204,7 @@ var LayoutManager = new Lang.Class({ // Set up stage hierarchy to group all UI actors under one container. this.uiGroup = new Shell.GenericContainer({ name: 'uiGroup' }); + this.uiGroup.set_flags(Clutter.ActorFlags.NO_LAYOUT); this.uiGroup.connect('allocate', (actor, box, flags) => { let children = actor.get_children(); for (let i = 0; i < children.length; i++)